\documentclass{article}
\begin{document}
\begin{verbatim} $src set packetSize_ 100000 \end{verbatim}
\begin{verbatim*} $src set packetSize_ 100000 \end{verbatim*}
\end{document}

